package jf.jextn.converter;

public class DoubleConverter extends NumberConverter<Double> {
    public final static DoubleConverter INSTANCE = new DoubleConverter();

    @Override
    protected Double from(String value, int radix) {
        return Double.valueOf(value);
    }

    @Override
    protected String to(Double value, int radix) {
        return Double.toString(value.doubleValue());
    }

    @Override
    public void setRadix(int radix) {
        throw new UnsupportedOperationException("radix not supported by double converter");
    }
}
